<div class="span9">
	<?php if(!empty($this->blog)){?>
	<legend>
		<div class="row-fluid">
			<div class="span12" style="text-align:right;">
				<a class="btn" href="/blog/add"><i class="icon-plus"></i> <strong>VIẾT BLOG</strong></a>
				<?php if ($this->owner){?>
					<a class="btn" href="/blog/edit/bid/<?php echo $this->blog['id'];?>"><i class="icon-edit"></i> <strong>SỬA BLOG</strong></a>
					<a class="btn" href="/blog/del/bid/<?php echo $this->blog['id'];?>"  onclick="return confirm('Bạn có muốn xóa bài blog này hay không?');"><i class="icon-remove"></i> <strong>XÓA BLOG</strong></a>
				<?php }?>
			</div>
		</div>
	</legend>
	<h4><?php echo $this->blog['title'];?></h4>
	<small class="txtgrey">Viết lúc: <span><?php echo $this->blog['created_date']; ?></span></small>
	<div class="blog-content">
		<?php echo $this->blog['content'];?>
	</div>
	<?php }else{ ?>
    <div class="row-fluid">
      <div class="span12">
        <p class="text-info" style="text-align:center;">Chưa có blog nào !</p>
      </div>
    </div>
  <?php } ?>
</div><!--/span-->
<div class="span3">
	<?php if (!empty($_SESSION['logginUser'])){?>
	  <div>
	    <p>Chào <a href="/blog/index/usid/<?php echo $_SESSION['logginUser']['uid']; ?>"><?php echo $_SESSION['logginUser']['fullname']; ?></a></p>
	  </div>
	  <?php }?>
	<ul class="thumbnails">
	  <li class="span12">
	    <div class="thumbnail">
	      <img data-src="holder.js/300x200" alt="" src="<?php echo $this->userInfo['avatar'];?>">
	      <h5 style="text-align:center"><a href="<?php echo $this->userInfo['profile_url'];?>"><?php echo $this->userInfo['fullname'];?></a></h5>
	      <p style="text-align:center">Tổng số blog: <a href="/blog/index/usid/<?php echo $this->usid; ?>"><?php echo $this->totalBlog ?></a></p>
	    </div>
	  </li>	  
	</ul>

	<img data-src="holder.js/300x200" alt="" src="/img/cunghoangdao320x222.gif">

  
</div><!--/span-->